From b85c4524c44654c2b8be7817b8b1ccd4fd4ffd58 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 25 Aug 2005 21:49:03 +0000 Subject: [PATCH] Netstumbler, geoniche: Explicitly init struct tm to zeros to hugh valgrind. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1368 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/geoniche.c | 2 +- gpsbabel/netstumbler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/geoniche.c b/gpsbabel/geoniche.c index c44a94d59..b0c85be65 100644 --- a/gpsbabel/geoniche.c +++ b/gpsbabel/geoniche.c @@ -214,7 +214,7 @@ data_read(void) int icon; char *notes; char gid[6+1]; - struct tm tm; + struct tm tm = {0}; wpt = waypt_new(); if (!wpt) diff --git a/gpsbabel/netstumbler.c b/gpsbabel/netstumbler.c index 242fdb881..554d513b2 100644 --- a/gpsbabel/netstumbler.c +++ b/gpsbabel/netstumbler.c @@ -74,7 +74,7 @@ data_read(void) int stealth_num = 0, whitespace_num = 0; long flags = 0; int speed = 0, channel = 0; - struct tm tm; + struct tm tm = {0}; for(; fgets(ibuf, sizeof(ibuf), file_in);) { char *field; -- 2.30.2